import request from '@/utils/request'

// 查询物料质检规则列表
export function listNcMaterialInspectionRules(query) {
  return request({
    url: '/business/NcMaterialInspectionRules/list',
    method: 'get',
    params: query
  })
}

// 查询物料质检规则详细
export function getNcMaterialInspectionRules(id) {
  return request({
    url: '/business/NcMaterialInspectionRules/' + id,
    method: 'get'
  })
}

// 新增物料质检规则
export function addNcMaterialInspectionRules(data) {
  return request({
    url: '/business/NcMaterialInspectionRules',
    method: 'post',
    data: data
  })
}

// 修改物料质检规则
export function updateNcMaterialInspectionRules(data) {
  return request({
    url: '/business/NcMaterialInspectionRules',
    method: 'put',
    data: data
  })
}

// 删除物料质检规则
export function delNcMaterialInspectionRules(id) {
  return request({
    url: '/business/NcMaterialInspectionRules/' + id,
    method: 'delete'
  })
}
